package com.lottery.material.service.portal.user.impl;

import com.lottery.material.dao.portaluser.ValidateCodeRecordMapper;
import com.lottery.material.pojo.portaluser.ValidateCodeRecord;
import com.lottery.material.service.portal.user.ValidateCodeRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ValidateCodeRecordServiceImpl implements ValidateCodeRecordService {

    @Autowired
    ValidateCodeRecordMapper validateCodeRecordMapper;


    @Override
    public ValidateCodeRecord findFirstByPhoneNumberOrderByCreateTimeDesc(String phoneNumber) {
        return validateCodeRecordMapper.findFirstByPhoneNumberOrderByCreateTimeDesc(phoneNumber);
    }
}
